﻿@model www.SService.RelaxContactDataContract
@{
    ViewBag.Title = "Trả lời liên lạc";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<div class="content">
    <fieldset style="width: 99%; height: auto; overflow: hidden; border: 1px solid #008080;">
        <legend>Thêm mới Thông tin liên lạc</legend>
        <div class="clear"></div>
        @using (Html.BeginForm("Add", "Contact", FormMethod.Post, new { id = "frmAdd" }))
        {
           @Html.Hidden("id",Model.Id)
            <div class="row">
                <div class="col-left">Tên</div>
                <div class="col-right">@Html.TextBox("txtName", Model.Name, new { @class = "textbox",@readonly="true" })
                    <span class="red">*</span>
                </div>
            </div>
            <div class="row">
                <div class="col-left">Tiêu đề</div>
                <div class="col-right">@Html.TextBox("txtTitle", Model.Title, new { @class = "textbox",@readonly="true" })
                    <span class="red">*</span>
                </div>
            </div>
            <div class="row">
                <div class="col-left">Mail to</div>
                <div class="col-right">@Html.TextBox("txtEmailto", Model.Email, new { @class = "textbox",@readonly="true" })<span class="red">*</span></div>
            </div>
            <div class="decription">
                <div class="col-left">Nội dung</div>
                <div class="col-right">@Html.TextBox("txtdetail", null, new { @class = "textarea" })<span class="red">*</span></div>
            </div>
             <div class="row">
                <div class="col-left">Mail from</div>
                <div class="col-right">@Html.TextBox("txtEmailfrom", null, new { @class = "textbox"})<span class="red">*</span></div>
            </div>
            <div class="row">
                <div class="col-left">Tên</div>
                <div class="col-right">@Html.Password("txtPassword",null, new { @class = "textbox",@readonly="true" })
                    <span class="red">*</span>
                </div>
            </div>
            <div class="row">
                <div class="col-left"></div>
                <div class="col-right">
                    <input type="submit" id="Submit1" class="button" name="submit1" value="Trả lời" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@Html.ActionLink("Quay lại", "Index", "Contact")
                </div>
            </div>
        }

    </fieldset>
</div>
